import CustomCanvas from '@/js/canvasInit/index.ts'
import MarioWorld from '@/js/Mario/index.ts'

const VITE_NODE_ENV = import.meta.env.VITE_NODE_ENV

if(VITE_NODE_ENV === 'free') {
    const canvas = new CustomCanvas()
    canvas.createCanvas('app')
    canvas.drawAllUnit()
    canvas.loadRole()
    canvas.loadVillain()
} else if (VITE_NODE_ENV === 'mario') {
    const marioWorld = new MarioWorld()
    marioWorld.createCanvas('app')
    // 生成墙体
    marioWorld.drawAllUnit()
    marioWorld.roleController()
}

